# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-gst
pkgver=1.20.3
pkgrel=0
pkgdesc="GStreamer Python3 bindings"
url="https://cgit.freedesktop.org/gstreamer/gst-python/"
arch="all"
license="LGPL-2.1-or-later"
depends="py3-gobject3 gst-plugins-base"
makedepends="gst-plugins-base-dev gstreamer-dev meson py3-gobject3-dev
	python3-dev"
source="https://gstreamer.freedesktop.org/src/gst-python/gst-python-$pkgver.tar.xz
	"
builddir="$srcdir/gst-python-$pkgver"

build() {
	abuild-meson \
		-Dpython=/usr/bin/python3 \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test -v --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
987b444d78b5fb206457245b46b843db9372f9bd316abc57ecd8d50488ef734707a08ac88a9b9d58e2db113e67ce5b524aad82c0086471494c2177c2e272de6e  gst-python-1.20.3.tar.xz
"
